import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/project',
    name: 'Project',
    component: () => import('../views/project/index.vue')
  },
  {
    path: '/blog',
    name: 'Blog',
    component: () => import('../views/blog/index.vue')
  },
  {
    path: '/blog-details',
    name: 'BlogDetails',
    component: () => import('../views/blog/details.vue')
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../views/About.vue')
  },
  {
    path: '/links',
    name: 'Links',
    component: () => import('../views/links/index.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
